import requests

url = "https://ug.baidu.com/mcp/pc/pcsearch"
my_data = {
    "invoke_info": {
        "pos_1": [
            {}
        ],
        "pos_2": [
            {}
        ],
        "pos_3": [
            {}
        ]
    }
}
my_cookie="BIDUPSID=53743A292F4AEC9EDDF8E91912EDB807; PSTM=1647528394; BAIDUID=53743A292F4AEC9EC8D065F55624F694:SL=0:NR=10:FG=1; BDUSS=mJnMm53Q35ibUx5R0tpdnM5Ri02TDhRcmZHWTcyRmN3dU1EUmZZcXRzOWJ0MmhsRVFBQUFBJCQAAAAAAAAAAAEAAADklQE5xN6658HjweMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFsqQWVbKkFlM; BDUSS_BFESS=mJnMm53Q35ibUx5R0tpdnM5Ri02TDhRcmZHWTcyRmN3dU1EUmZZcXRzOWJ0MmhsRVFBQUFBJCQAAAAAAAAAAAEAAADklQE5xN6658HjweMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFsqQWVbKkFlM; BDSFRCVID=BtAOJexroG3E6q3qwAFdKmV022KK0PQTDYrEOwXPsp3LGJLVFWpkEG0PtDQMefIb1DMtogKKy2OTH9DF_2uxOjjg8UtVJeC6EG0Ptf8g0M5; H_BDCLCKID_SF=Jn-eVID-fC_3jboRq46sM-DJ5xtX5-CsJj7l2hcH0KLKbDolK5rKKq_Uhbbi2ltJLCrjKPQX-fb1MRjvjT7obqJy-45pWROCLGQz5h5TtUJ2JKnTDMRhXf-Pj47yKMniMRr9-pPX3pQrh459XP68bTkA5bjZKxtq3mkjbPbDfn02eCKuD6taj5jLjN0saJQL-nCX_Cjy2Rj0HJIk-PI3WqKdXP6-3-r7LDKqoqO8-RoIsbTohqb05PuUyN3MWh37aIJXQn7K-l6iOtOFBT74y4Ldj4oxJpOJ5JbMopvaKqQxVMovbURvD--g3-AqBM5dtjTO2b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3-AqBM5dtjTO2bc_5KnlfMQ_bf--QfbQ0hOhqP-jBRIE_C_-JCIhbKtrbJ3E-ICe5f60546W5CQ0sJO8fKolKq7_bf--D6-gXRKOtRo0-mvZab6CtnoGMxOjQt5xy5KEDnOLK-6dtjbm3bTI5-5-jCJHQT3mbMrbbN3itPvdKH5KWb3cW-IK8UbSefOPBTD02-nBat-OQ6npaJ5nJq5nhMJmb67JDbv0eGKttT0DJnIDVb3Vbn5qKROvhjRZKq8gyxoObtRxt2IqQCOhbhjSJhvz360KDxPUDb3ILU3k-eT--CTOa-QqsUJoDhjP3n8fQttjQn3RLmj-0qTttlbYfb7TyURBDx47yarR0q4Hb6b9BJcjfU5MSlcNLTjpQT8r5MDOK5OuJRLH_C-2tC-hhDvPKITD-tFO5eT22-us0jnC2hcHMPoosIOHjRL5KJ-FQxOi2lKjtJriaKJxLxbUotoHXnJi0btQDPvxBf7p3HvjBh5TtUJMsMjEbtjz-6_vXqOyKMniMRr9-pPX3pQrh459XP68bTkA5bjZKxtq3mkjbPbDfn028DKu-n5jHjJ3DGLH3f; H_WISE_SIDS=39998_40018_40038; BA_HECTOR=2k2hag2184agah00a58184a4t1bd0s1iqspcu1t; ZFY=Lf2ceNT0:AF4ZN2YECqWudWNTUPz0YhEYaAtYweBAjw8:C; BAIDUID_BFESS=53743A292F4AEC9EC8D065F55624F694:SL=0:NR=10:FG=1; delPer=0; BDRCVFR[feWj1Vr5u3D]=I67x6TjHwwYf0; PSINO=3; H_WISE_SIDS_BFESS=39998_40018_40038"
my_header = {
    "User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36",
    "Cookie":my_cookie,
    "Referer":"https://www.baidu.com/s?ie=utf-8&f=8&rsv_bp=1&tn=baidu&wd=%E7%BF%BB%E8%AF%91&oq=%25E7%25BF%25BB%25E8%25AF%2591&rsv_pq=9baf5ace0005195e&rsv_t=7f633x%2Bumf1ChXsRC6nK5nqBo8K7H2pJf5Zng9l7%2F0gOYzCpJSFHLdyGnDM&rqlang=cn&rsv_enter=0&rsv_dl=tb&rsv_btype=t"
}
resp = requests.put(url, data=my_data,headers=my_header)
print(resp.text)

